package com.peas.platform.module.icims.base.dict.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("数据字典值")
public class DictValueVo extends BaseVo {

    // 【数据字典类型表】
    @Comment(value = "数据字典类型ID")
    @ApiModelProperty(value = "数据字典类型ID")
    @NotNull(message = "数据字典类型ID不能为空")
    private Long dictTypeId;

    @Comment(value = "数据字典类型编码")
    @ApiModelProperty(value = "数据字典类型编码")
    @Size(max = 50, message = "数据字典类型编码不能超过50个字符")
    private String dictType;

    @Comment(value = "数据字典值")
    @ApiModelProperty(value = "数据字典值")
    @NotBlank(message = "数据字典值不能为空")
    @Size(max = 100, message = "数据字典值不能超过100个字符")
    private String dictKey;

    @Comment(value = "数据字典名称")
    @ApiModelProperty(value = "数据字典名称")
    @NotBlank(message = "数据字典名称不能为空")
    @Size(max = 200, message = "数据字典名称不能超过200个字符")
    private String dictValue;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    @Comment(value = "排序权重")
    @ApiModelProperty(value = "排序权重")
    private Integer weight;

    @Comment(value = "标签类型", enumType = "CommonElType")
    @ApiModelProperty(value = "标签类型", notes = "枚举取值:CommonElType")
    @Size(max = 100, message = "标签类型不能超过100个字符")
    private String elTagType;

    @Comment(value = "标签class")
    @ApiModelProperty(value = "标签class")
    @Size(max = 100, message = "标签class不能超过100个字符")
    private String elTagClass;

    @Comment(value = "标签样式")
    @ApiModelProperty(value = "标签样式")
    @Size(max = 100, message = "标签样式不能超过100个字符")
    private String elTagStyle;

}
